<template>
<section @click="clickCurrent('current')" @mousedown="clickCurrent('dragging')">
    <div :class="['custorm--modelbox', 'marketenvelope-show', (custormCurrent == custormIndex)?'drag active':'drag']">
        <div v-if="custormItemData.params.isshow == '2'" class="noshow" v-bind:style="{'background-image':`url(${getPath('noshow.png')})`}"></div>
        <div v-if="custormItemData.style.display == '1'" style="overflow: hidden;">
            <div class="marketenvelope-main flex-row flex-justify-b flex-align-c">
                <div class="flex-row flex-align-c">
                    <div><span class="price">2.00</span><span class="yuan">元</span></div>
                    <div class="flex-col">
                        <p class="title">每日剁手红包</p>
                        <p class="subtitle">红包仅限部分商品使用</p>
                    </div>
                </div>
                <div class="btn">领取</div>
            </div>
        </div>
        <div class="btn-edit-del" @click="delCurrent"><span class="btn-del iconfont icon icon-close"></span></div>
    </div>
</section>
</template>

<script>
import defaultConfig from './utils/showConfig'
export default {
  mixins: [defaultConfig.mixins],
  props: {
    defaultConfig: {
      type: Object,
      default: function() {
        return defaultConfig
      }
    }
  },
  components: {
  },
  methods: {

  }
}
</script>

<style lang="scss" scoped>
.custorm--modelbox.marketenvelope-show {
    .marketenvelope-main {
        color: #eb7175;
        margin: 2px;
        padding: 20px 14px;
        background: #fdebeb;

        .price {
            font-size: 20px;
        }

        .yuan {
            font-size: 12px;
            margin-right: 30px;
        }

        .title {
            font-size: 18px;
        }

        .subtitle {
            font-size: 14px;
        }

        .btn {
            padding: 4px 16px;
            color: #fff;
            border-radius: 20px;
            background: #fb5755;
        }
    }
}
</style>
